package com.sz.mes.entity;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.sz.mes.entity.BaseCustomEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 投料 Entity定义
 * @author hem
 * @version 1.0
 * @date 2024-01-19
 * Copyright © szhs
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("cast_material")
public class CastMaterial extends BaseCustomEntity {

    private static final long serialVersionUID = 2250348498493260613L;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 投料人
     */
    @Length(max = 100, message = "投料人长度应小于100")
    @TableField()
    private String userName;

    /**
     * 工序id
     */
    @TableField()
    private Long techId;

    /**
     * 投料数量
     */
    @TableField()
    private Integer castQuantity;

    /**
     * 投料回数编号
     */
    @TableField()
    private Integer number;

    /**
     * 投料是否已使用
     */
    @TableField()
    private Integer isUsed;
}
